//
//  ConvenientlyTakeAPIRequest.h
//  ConvenientlyTake
//
//  Created by 张奇 on 2022/12/22.
//

#import "TGNetworkManager.h"

NS_ASSUME_NONNULL_BEGIN

@interface ConvenientlyTakeAPIRequest : TGNetworkManager

/// 随手拍-分页查询事件列表
/// @param randomClapState 随手拍状态(1-待受理; 2-处置中；3-已办结; 4-不予受理)
/// @param success success
/// @param fail fail
+(NSURLSessionDataTask *)GETEventWithRandomClapState:(NSInteger)randomClapState
                                                page:(NSInteger)page
                                             success:(LZTResponseSuccess)success fail:(LZTResponseFailure)fail;

/// 获取所有事件类型
/// @param keyword 关键字
/// @param success success
/// @param fail fail
+(NSURLSessionDataTask *)GETEventTypeWithKeyword:(NSString *)keyword
                                         success:(LZTResponseSuccess)success fail:(LZTResponseFailure)fail;

/// 实地调查组新增
/// @param problemDescription 问题描述
/// @param promoterPhone 联系方式
/// @param province 省
/// @param city 市
/// @param county 县/区
/// @param address 详细地址
/// @param longitude 经度
/// @param latitude 纬度
/// @param eventType 事件类型
/// @param imagesList 照片 "fileType":文件类型(1-图片；2-视频)  fileName:文件名  文件路径:文件路径
/// @param videoList 视频 "fileType":文件类型(1-图片；2-视频)  fileName:文件名  文件路径:文件路径
/// @param success success
/// @param fail fail
+(NSURLSessionDataTask *)POSTConvenientTakeAddWithProblemDescription:(NSString *)problemDescription
                                                       promoterPhone:(NSString *)promoterPhone
                                                            province:(NSString *)province
                                                                city:(NSString *)city
                                                              county:(NSString *)county
                                                             address:(NSString *)address
                                                           longitude:(NSString *)longitude
                                                            latitude:(NSString *)latitude
                                                           eventType:(NSString *)eventType
                                                          imagesList:(NSArray *)imagesList
                                                           videoList:(NSArray *)videoList
                                                             success:(LZTResponseSuccess)success fail:(LZTResponseFailure)fail;

/// 随手拍-事件详情
/// @param eventId id
/// @param success success
/// @param fail fail
+(NSURLSessionDataTask *)GETEventDetailWithEventId:(NSString *)eventId
                                         success:(LZTResponseSuccess)success fail:(LZTResponseFailure)fail;



@end

NS_ASSUME_NONNULL_END
